projects
/
utf8proc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fff5f3
)
silence warning (closes #184)
author
Steven G. Johnson
<stevenj@alum.mit.edu>
Sat, 28 Mar 2020 18:00:30 +0000
(14:00 -0400)
committer
Steven G. Johnson
<stevenj@alum.mit.edu>
Sat, 28 Mar 2020 18:00:30 +0000
(14:00 -0400)
test/graphemetest.c
patch
|
blob
|
history
diff --git
a/test/graphemetest.c
b/test/graphemetest.c
index f9b8e3e0eda9d49fc185c6435ee27ecdef4d21d3..337a0306ada0c48d0b9335c2cafb05bd78028f40 100644
(file)
--- a/
test/graphemetest.c
+++ b/
test/graphemetest.c
@@
-5,7
+5,6
@@
int main(int argc, char **argv)
char buf[8192];
FILE *f = argc > 1 ? fopen(argv[1], "r") : NULL;
utf8proc_uint8_t src[1024];
- int len;
check(f != NULL, "error opening GraphemeBreakTest.txt");
while (simple_getline(buf, f) > 0) {
@@
-30,7
+29,7
@@
int main(int argc, char **argv)
break;
}
else { /* hex-encoded codepoint */
- len = encode((char*) (src + si), buf + bi) - 1;
+
size_t
len = encode((char*) (src + si), buf + bi) - 1;
while (src[si]) ++si; /* advance to NUL termination */
bi += len;
}